/*
    作者：vikingleo | http://www.vkleo.com | QQ:2$margin-interval0$margin-interval11200
    创建时间：2017-3-13 11:31:$margin-interval3
    描述：外边距公共样式
*/
@import 'mixins.config';

@for $i from $margin-begin through $margin-end {
  .m {
    &-#{""+$i*$margin-interval} {
      margin: pm($i) !important;

      &-reverse {
        margin: pm(-$i) !important;
      }
    }

    &x-center {
      margin: {
        left: auto;
        right: auto;
      }
    }

    &x-#{""+$i*$margin-interval} {
      margin-left: pm($i) !important;
      margin-right: pm($i) !important;

      &-reverse {
        margin-left: pm(-$i) !important;
        margin-right: pm(-$i) !important;
      }
    }

    &y-#{""+$i*$margin-interval} {
      margin-top: pm($i) !important;
      margin-bottom: pm($i) !important;

      &-reverse {
        margin-top: pm(-$i) !important;
        margin-bottom: pm(-$i) !important;
      }
    }

    &t-#{""+$i*$margin-interval} {
      margin-top: pm($i) !important;

      &-reverse {
        margin-top: pm(-$i) !important;
      }
    }

    &r-#{""+$i*$margin-interval} {
      margin-right: pm($i) !important;

      &-reverse {
        margin-right: pm(-$i) !important;
      }
    }

    &b-#{""+$i*$margin-interval} {
      margin-bottom: pm($i) !important;

      &-reverse {
        margin-bottom: pm(-$i) !important;
      }
    }

    &l-#{""+$i*$margin-interval} {
      margin-left: pm($i) !important;

      &-reverse {
        margin-left: pm(-$i) !important;
      }
    }
  }
}
